var RecentCounter = function() {
	this.q = []
}

RecentCounter.prototype.ping = function(t) {
	this.p.push(t);
	while(this.q[0] < t - 3000){
		this.q.shift()
	}
	return this.q.length
}